package org.kangjia.hook;

import java.lang.reflect.Field;

/**
 * 动态导出指定字段策略
 */
public abstract class DynamicFieldsExcelExportHandler {

    /**
     * 设置动态导出的筛选策略
     * @param field
     * @param fieldName
     * @return
     */
    public abstract boolean setSelectStrategy(Field field,String fieldName);

    /**
     * 执行动态导出筛选策略
     * @param field
     * @return
     */
    public final boolean executiveStrategy(Field field){
        return this.setSelectStrategy(field,field.getName());
    }
}
